package com.dragon.pear.common.inject;

import androidx.lifecycle.ViewModelProvider;

import com.chris.libs.base.x.mvpp.application.AppGlobal;
import com.dragon.pear.pages.tabs.main.mine.MineViewModel;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * @author Chris chan
 * Create on： 2025/2/1 9:56
 * Use for:
 * Explain:
 */
@Module
public class AppModule {
    @Singleton
    @Provides
    public MineViewModel provideMineViewModel() {
        return new ViewModelProvider(AppGlobal.getOwner()).get(MineViewModel.class);
    }
}
